Followup r90041: keep naming of watch and unwatch calls consistent
authorRoan Kattouw <catrope@users.mediawiki.org>
Tue, 16 Aug 2011 12:46:15 +0000 (12:46 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Tue, 16 Aug 2011 12:46:15 +0000 (12:46 +0000)
includes/api/ApiWatch.php

index e3bd57f..96bf533 100644 (file)
@@ -59,11 +59,11 @@ class ApiWatch extends ApiBase {
                if ( $params['unwatch'] ) {
                        $res['unwatched'] = '';
                        $res['message'] = wfMsgExt( 'removedwatchtext', array( 'parse' ), $title->getPrefixedText() );
-                       $success = WatchAction::doUnwatch( $title, $wgUser );
+                       $success = UnwatchAction::doUnwatch( $title, $wgUser );
                } else {
                        $res['watched'] = '';
                        $res['message'] = wfMsgExt( 'addedwatchtext', array( 'parse' ), $title->getPrefixedText() );
-                       $success = UnwatchAction::doWatch( $title, $wgUser );
+                       $success = WatchAction::doWatch( $title, $wgUser );
                }
                if ( !$success ) {
                        $this->dieUsageMsg( 'hookaborted' );